CHALLENGE 9: Tell your classmates what your favorite and least favorite foods are!

We can add to lists using the .append() command and dot notation.

  • In , use Append to add at least two new foods to your most favorite foods list.
  • Use Append to add at least two new foods to your least favorite foods list.
  • Make sure you update your lists BEFORE you create the display.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)